﻿/******************************************************   
创建者: ljj
创建时间: 2018-07-18
修改:
修改时间: 
功能: 订货会
 ******************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.kmer.Attributes;

namespace TouchUIWeiXinAPI.model
{
    public class OrderModel
    {
        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-18
        public class OrderMasterModel
        {
            [ParamDescription("ID")]
            public int MasterID { get; set; }
            [ParamDescription("订货会")]
            public string OrderName { get; set; }

            [ParamDescription("开始时间")]
            public DateTime BeginDate { get; set; }
            
            [ParamDescription("结束时间")]
            public DateTime EndDate { get; set; }

        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-18
        public class ItemModel
        {
            [ParamDescription("项目")]
            public string ItemName { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-18
        public class ConcditionModel
        {
            [ParamDescription("系列")]
            public string SerialName { get; set; }
            public IList<ItemModel> itemList { get; set; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-19
        public class GoodNeceModel : ItemModel
        {
            [ParamDescription("商品详情内码ID")]
            public int DetailID { get; set; }

            [ParamDescription("订货会内码ID")]
            public int MasterID { get; set; }

            [ParamDescription("系列")]
            public string SerialName { get; set; }
            [ParamDescription("流水号")]
            public string SerialNo { get; set; }

            [ParamDescription("吊牌价")]
            public decimal? RetailPrice { get; set; }

            [ParamDescription("图片")]
            public string ImgUrl { get; set; }

            [ParamDescription("是否评分")]
            public bool IsScore { get; set; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-19
        public class GoodCoreModel : GoodNeceModel
        {

            [ParamDescription("设计号")]
            public string DesignNo { get; set; }
            [ParamDescription("商品层")]
            public string MaterialProperty { get; set; }

            //[ParamDescription("是否定版 true：是 false：否")]
            //public bool IsChooseFlag { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-21
        public class SameGoodModel
        {
            [ParamDescription("商品详情内码ID")]
            public int DetailID { get; set; }
            [ParamDescription("订货会内码ID")]
            public int MasterID { get; set; }
            [ParamDescription("设计号")]
            public string DesignNo { get; set; }
            [ParamDescription("流水号")]
            public string SerialNo { get; set; }
            [ParamDescription("图片")]
            public string ImgUrl { get; set; }
            [ParamDescription("是否评分")]
            public bool IsScore { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-19
        public class GoodInfoModel: GoodCoreModel
        {
            [ParamDescription("颜色名称")]
            public string ColorName { get; set; }
            [ParamDescription("年份")]
            public int YearNo { get; set; }
            [ParamDescription("季节")]
            public string SeasonName { get; set; }
            [ParamDescription("款型")]
            public string ModelName { get; set; }
            [ParamDescription("厚薄")]
            public string ThicknessName { get; set; }
            [ParamDescription("元素")]
            public string ElementName { get; set; }
            [ParamDescription("领型")]
            public string CollarTypeName { get; set; }
            [ParamDescription("版型")]
            public string ClothesVersionName { get; set; }
            [ParamDescription("廓形")]
            public string CommodityProfileName { get; set; }
            [ParamDescription("设计师")]
            public string DesignName { get; set; }
            [ParamDescription("面料")]
            public string StuffName { get; set; }
            [ParamDescription("里料")]
            public string Lining { get; set; }
            [ParamDescription("供应商名称")]
            public string VendCustName { get; set; }
            [ParamDescription("成本价")]
            public decimal? CostPrice { get; set; }
            [ParamDescription("定倍率")]
            public decimal? OrderRate { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-19
        public class GoodShowModel
        {
            public GoodInfoModel goodInfo { get; set; }
            public IList<ScoreItemModel> scoreList { get; set; }
            public IList<GoodNeceModel> similarList { get; set; }
            public IList<SameGoodModel> sameGoodList { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-19
        public class ScoreValueModel
        {
            public string ScoreValue { get; set; }
        }

        public class ScoreItemModel
        {
            public string ScoreItem { get; set; }
            public IList<ScoreValueModel> scoreValueList { get; set; }
            public decimal? Score { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-19
        public class ScoreSaveModel
        {
            [ParamDescription("商品详情内码ID")]
            public int DetailID { get; set; }
            [ParamDescription("订货会内码ID")]
            public int MasterID { get; set; }
            [ParamDescription("A店铺评分")]
            public decimal AStoreRating { get; set; }
            [ParamDescription("B店铺评分")]
            public decimal BStoreRating { get; set; }
            [ParamDescription("款式评分")]
            public decimal StyleRating { get; set; }
            [ParamDescription("OpenId")]
            public string OpenId { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-20
        public class LevelCoreModel
        {
            [ParamDescription("订货会内码ID")]
            public int MasterID { get; set; }
            [ParamDescription("流水号")]
            public string SerialNo { get; set; }
            [ParamDescription("A时尚度级别")]
            public string AStoreLevel { get; set; }
            [ParamDescription("B时尚度级别")]
            public string BStoreLevel { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-20
        public class LevelSaveModel
        {
            public IList<LevelCoreModel> levelList { get; set; }
            [ParamDescription("OpenId")]
            public string OpenId { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// writer:ljj
        /// Create Date：2018-07-20
        public class OrderResultModel : LevelCoreModel
        {
            [ParamDescription("商品详情内码ID")]
            public int DetailID { get; set; }

            [ParamDescription("设计号")]
            public string DesignNo { get; set; }

            [ParamDescription("系列")]
            public string SerialName { get; set; }

            [ParamDescription("商品层")]
            public string MaterialProperty { get; set; }

            [ParamDescription("项目")]
            public string ItemName { get; set; }

            [ParamDescription("吊牌价")]
            public decimal? RetailPrice { get; set; }

            [ParamDescription("图片")]
            public string ImgUrl { get; set; }

            [ParamDescription("应评人数")]
            public int AllPersonaCount { get; set; }

            [ParamDescription("实评人数")]
            public int GradePersonaCount { get; set; }

            [ParamDescription("A店铺评分")]
            public double AStoreRating { get; set; }

            [ParamDescription("B店铺评分")]
            public double BStoreRating { get; set; }

            [ParamDescription("款式评分")]
            public double StyleRating { get; set; }
            [ParamDescription("OpenId")]
            public string OpenId { get; set; }
        }

    }
}
